import logging
import unittest

from htmltestreport import HTMLTestReport

from common.logging_use import init_log_config
from config import BASE_DIR
from scripts.test_ihrm_login_params import TestIhrmLoginParams

#初始化 日志 配置信息

init_log_config(BASE_DIR + "/log/login.log")


suite=unittest.TestSuite()

# logging.info("测试套件实例创建成功!")

suite.addTest(unittest.makeSuite(TestIhrmLoginParams))

runner=HTMLTestReport("./report/login.html","登录接口模块","登录测试用例")

runner.run(suite)
logging.info("login.html 测试报告 创建成功！")